set rtp+=~/.vim/plug/deoplete.nvim
set rtp+=~/.vim/plug/deoplete-clang

let g:deoplete#enable_at_startup = 1
let g:python3_host_prog = "/usr/bin/python"
call deoplete#custom#source('LanguageClient',
\ 'min_pattern_length',
\ 2)
call deoplete#custom#var('tabnine', {
\ 'line_limit': 500,
\ 'max_num_results': 20,
\ },1)
" Change the source rank
call deoplete#custom#source('tabnine', 'rank', 9999)

""""""""""clang""""""""""
"let deoplete#sources#clang#debug = 0
"let g:deoplete#sources#clang#clang_header = '/usr/lib/clang/13.0.0/include'
"let g:deoplete#sources#clang#libclang_path = '/usr/lib/libclang.so'
"let g:deoplete#sources#clang#flags = []
"let g:deoplete#sources#clang#std = {'c': 'c17', 'cpp': 'c++20', 'objc': 'c11', 'objcpp': 'c++1z'}
"let g:deoplete#sources#clang#sort_algo = 'priority'
"let g:deoplete#sources#clang#default_file = ''

"let g:deoplete#sources#clang#test_extensions = {'.h': ['.c', '.cpp', '.m', '.mm'], '.hpp': ['.cpp']}
"let g:deoplete#sources#clang#include_default_arguments = 0
"let g:deoplete#sources#clang#filter_availability_kinds = []
"let g:deoplete#sources#clang#clang_complete_database = ''
